package com.ccn.ui.lsn21svg;

import androidx.appcompat.app.AppCompatActivity;

import android.graphics.drawable.AnimatedVectorDrawable;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.ccn.ui.R;

public class SVGActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_svgactivity);
        findViewById(R.id.iv_search).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ImageView ivSearch = (ImageView) v;
                AnimatedVectorDrawable drawable = (AnimatedVectorDrawable) ivSearch.getDrawable();
                drawable.start();
            }
        });
    }
}